package com.ywu.sentinel.standard.entity;

import com.ywu.common.entity.CommonEntity;
import com.ywu.sentinel.sdk.dto.YwuParamItemDto;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @ClassName YwuHotRuleEntity
 * @Description TODO
 * @Author GroundDemo
 * @Date 2025/4/14 18:44
 * @Version 1.0
 **/
@Data
@ToString
public class YwuHotRuleEntity extends CommonEntity {
    private String id;

    private String app;

    // 资源
    private String resource;

    // 单机阈值
    private Integer count;

    // 针对来源  default
    private String limitApp;

    // 统计窗口时长
    private Integer durationInSec;

    // 参数索引位置
    private Integer paramIdx;

    // 限流模式
    private Integer grade;

    // 参数例外项
    private List<YwuParamItemDto> paramFlowItemList;

    private String paramFlowItemListStr;
}
